import Vue from 'vue'
import App from './App.vue'
import router from './router'
//引入ElementUI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
//引入axios
import axios from "axios";
//引入qs
import qs from "qs"

Vue.use(ElementUI)
//设置原型
Vue.prototype.axios = axios;
Vue.prototype.qs = qs;
//给axios定义基础路径
Vue.prototype.axios.defaults.baseURL = "http://localhost:8888";
//携带cookie
Vue.prototype.axios.defaults.withCredentials = true;

Vue.config.productionTip = false

new Vue({
  router,
  render: function (h) { return h(App) }
}).$mount('#app')
